#ifndef	_ADC_FREERTOS_H_
#define _ADC_FREERTOS_H_

//define for adc
#define ADC_VREF_TYPE 		0x60 // 0110 0000: AVCC with external capacitor at AREF pin.
								 // left_adjust.

#define	WHITE	0
#define	BLACK	1

void init_ADC(void);
void read_sensor(unsigned char *sensor_bits,unsigned char *_V_compare);
void save_sensor(unsigned char color,unsigned char *_V_compare);
//void Update_Vcompare(void);

void read_Vcompare(unsigned char *_V_compare);		//eeprom
void write_Vcompare(unsigned char *_V_compare);

#endif //_ADC_FREERTOS_H_
